package com.yunatt.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunatt.model.DeviceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceMapper extends BaseMapper<DeviceEntity> {


    List<DeviceEntity> findAllDevice();

    int updateStatusByPrimaryKey(@Param("id")int id,@Param("status")int status);



    DeviceEntity selectDeviceBySerialNum(String serialNum);
    

}